str1 = "WHEN: 2006-12-06 12:00 to 13:00; CST Office Confirmed"
str2 = "WHEN: 2006-12-04 Home Confirmed"
x = str2

stpt = 0
endpt = 0
#searching for CST which would mean a date and time was entered
endpt = x.find("CST")
if endpt > 0:
	endpt = endpt + 3
	stpt = x.find(":")
	if stpt > 0:
		stpt = stpt + 1
else:
	endpt = x.find("-")
	if endpt > 0:
		endpt = x.find("-",endpt + 1)
		endpt = endpt + 3
	stpt = x.find(":")
	if stpt > 0:
		stpt = stpt + 1
print 'End pt ',endpt,"stpt =",stpt,'Final info ',x[stpt:endpt]
